package com.mall.model.entity.Payms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 支付单表
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "支付单表",description = "")
@TableName("payms_payment")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PaymsPayment implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 订单id */
    @Schema(name = "订单id",description = "")
    private Long orderId;
    /** 支付方式;1:支付宝 2:微信 3:银行卡 */
    @Schema(name = "支付方式",description = "1:支付宝 2:微信 3:银行卡")
    private Integer method;
    /** 支付状态;1:待支付 2:已支付 3:支付失败 */
    @Schema(name = "支付状态",description = "1:待支付 2:已支付 3:支付失败")
    private Integer status;
    /** 支付金额 */
    @Schema(name = "支付金额",description = "")
    private Double amount;
    /** 第三方交易ID */
    @Schema(name = "第三方交易ID",description = "")
    private String transactionId;
    /** 支付时间 */
    @Schema(name = "支付时间",description = "")
    private Date payTime;
}